/**
 * Form Validator Modules.
 */
define([
	'jquery',
	'formChecky'
], 
function ($, Checky) {
	var FormValidator;
	FormValidator = (function () {
		function FormValidator () {
			this.dataFieldRule = {};
			this.dataOptions = {};
			this.dataValidator = {};
		}
		FormValidator.prototype.init = function (rule, options) {
			$.extend(this.dataFieldRule, rule);
			$.extend(this.dataOptions, options);
		};
		FormValidator.prototype.validate = function ($frm, rule, options) {
			this.init(rule, options);
			this.dataValidator = new VAM.Checky($frm, this.dataFieldRule, this.dataOptions);
		};

		return FormValidator;
	})();

	return FormValidator;
});